//
//  YMImageCell.m
//  PhotoTag
//
//  Created by Andrew on 2018/8/2.
//  Copyright © 2018年 Andrew. All rights reserved.
//

#import "YMImageCell.h"

@interface YMImageCell ()

/** 图片 */
@property (weak, nonatomic) IBOutlet UIImageView *image;
/** 删除照片 */
@property (weak, nonatomic) IBOutlet UIButton *deleteBtn;


@end


@implementation YMImageCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setIsAddImageBtn:(BOOL)isAddImageBtn
{
    _isAddImageBtn = isAddImageBtn;
    if (isAddImageBtn) {
        self.image.image = [UIImage imageNamed:@"add"];
    }
}

- (void)setPhoto:(ImageArrModel *)photo
{
    _photo = photo;
    
    self.image.image = photo.image;
}

@end
